﻿using Orchard.Localization;
using Orchard.UI.Navigation;

namespace Eneta.Profiles
{
    public class AdminMenu : INavigationProvider
    {
        public Localizer T { get; set; }

        public string MenuName
        {
            get { return "admin"; }
        }

        public void GetNavigation(NavigationBuilder builder)
        {
            builder.Add(T("Manage Profiles"), "3",
                        item => item.Action("Index", "Admin", new { area = "Eneta.Profiles" })
                                    .Permission(Permissions.ManageProfiles));
        }
    }
}